package com.xujiang.common_plus;

import android.content.Context;
import android.support.annotation.NonNull;

import com.xujiang.common_core.Common;
import com.xujiang.common_core.util.tool.PreferencesUtils;
import com.xujiang.common_plus.util.OkHttp3Utils;

/**
 * @author xujiang
 * @version 2017-07-19 16:48
 */
public class CommonPlus {
    public static String DISK_CACHE_DIR        = "imgCache";
    public static String HTTP_CACHE_DIR        = "httpCache";
    public static long   IMAGE_DISK_CACHE_SIZE = 500 * 1024 * 1024; // 500MB;

    public static void init(@NonNull Context context, String projectName, boolean isDebug) {
        Common.init(context, projectName, isDebug);
        OkHttp3Utils.init().setDefaultCache().initialization();
        PreferencesUtils.init(context);
    }
}
